<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>我的藏酒</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<include file="public/comm"/>
	</head>

	<body>
		<header class="mui-bar white mui-bar-nav fs_xl">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title black_m fs_xl">藏酒详情</h1>
		</header>
		<div class="mui-content fs_xl">
			<div class="cj_item active" style="">
				<div class="cj_tit fs_l cls">订单详情</div>
				<div class="cj_info cls">
					<div class="cj_lt">
						<img src="{$goodsInfo.original_img}" />
					</div>
					<div class="cj_rt">
						<p class="fs_m">{$goodsInfo.goods_name}</p>
						<p class="fs_s">
	<!-- 						<span class="cj_span1">{$goodsInfo.typetitle}</span> -->
							<span class="cj_span2">{$goodsInfo.aromatitle}</span>
							<span class="cj_span3">{$goodsInfo.themetitle}</span>
						</p>
						<p class="fs_m"><span>¥{$goodsInfo.shop_price}/L</span><span>(已选{$goodsInfo.other_content.capacity})</span><span>×<if $type == 1>{$goodsInfo.goods_num}<else /> {$goodsInfo.num}</if></span></p>
					</div>
				</div>
				<if $type == 1>
					<div class="cj_zs mui-table-view-cell">
						<a href="{:U('/Mobile/User/cellar_give',array('id'=>$goodsInfo.rec_id))}" class="mui-navigate-right fs_m">赠送</a>
					</div>
					<div class="cj_zs mui-table-view-cell">
						<a href="{:U('/Mobile/User/cellar_extract',array('id'=>$goodsInfo.rec_id,'type'=>$type))}" class="mui-navigate-right fs_m">提酒</a>
					</div>
				<else />
					<div class="cj_zs mui-table-view-cell">
						<a href="{:U('/Mobile/User/cellar_extract',array('id'=>$goodsInfo.id,'type'=>$type))}" class="mui-navigate-right fs_m">提酒</a>
					</div>
				</if>
			</div>
			<div class="cj_jbxx">
				<b class="fs_xl">藏酒基本信息</b>
				<div class="cj_jb_info">
					<ul>
						<li>
							<p class="fs_l">藏酒时间</p>
							<p class="fs_m">{$cellar_years}年（{$goodsInfo.add_time|date="Y-m-d",###}至{$goodsInfo.end_time|date="Y-m-d",###}）</p>
							<if $type == 1>
								<a href="{:U('/Mobile/User/cellar_years_add',array('id'=>$goodsInfo.rec_id))}" class="time_xg fs_m">延长托管</a>
							<else />
								<a href="{:U('/Mobile/User/cellar_years_add',array('id'=>$goodsInfo.id,'type'=>1))}" class="time_xg fs_m">延长托管</a>
							</if>
						</li>
						<li>
							<p class="fs_l">藏酒地址</p>
							<p class="fs_m">{$goodsInfo.suppliers_name}</p>
						</li>
						<li>
							<p class="fs_l">藏酒编码</p>
							<p class="fs_m">
								<volist name="$goodsInfo.bottle_num"  id="vo">
									<a class="fs_m">{$vo}</a>
								</volist>
							</p>
						</li>
					</ul>
				</div>
				<if $type == 1>
					<b class="fs_xl">赠送记录</b>
					<div class="zs_jl">
						<ul class="mui-table-view mui-table-view-chevron">
							<volist name="$cellarGive" id="vo">
								<li class="mui-table-view-cell">
									<a href="{:U('/mobile/user/cellar_recordInfo',array('id'=>$vo.id))}" class="mui-navigate-right fs_m">{$vo.addtime|date="Y-m-d",###}<span>{$vo.num}</span></a>
								</li>
							</volist>
						</ul>
					</div>
				</if>
				<b class="fs_xl">提酒记录</b>
				<div class="zs_jl">
					<ul class="mui-table-view mui-table-view-chevron">
						<volist name="$cellarExtract" id="vo">
							<li class="mui-table-view-cell">
								<a href="{:U('/mobile/user/cellar_recordInfo',array('id'=>$vo.id))}" class="mui-navigate-right fs_m">{$vo.addtime|date="Y-m-d",###}<span>{$vo.num}</span></a>
							</li>
						</volist>
					</ul>
				</div>
			</div>
		</div>
		<script type="text/javascript">
			mui.init();
		</script>
	</body>

</html>